import React, {Component} from "react";

export class ChatList extends Component {
  render() {  
    const {textList} = this.props;
    return(
      <ul className="chatList">
        {
          textList.map((item, index) => (
            <li className="chatItme" key={index}>
              {item}
            </li>
          ))
        }
      </ul>
    )
  }
}